Correct check for extended-cr3 support in __xen_guest fallback code.
authorIan Campbell <ian.campbell@xensource.com>
Tue, 10 Oct 2006 09:06:56 +0000 (10:06 +0100)
committerIan Campbell <ian.campbell@xensource.com>
Tue, 10 Oct 2006 09:06:56 +0000 (10:06 +0100)
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
tools/libxc/xc_load_elf.c
xen/common/elf.c

index 3fbd3d9ccc623155e58a891a6ecfc57008072cbc..9ca9759398f715e3b72c3e7c5d8b69d204aec250 100644 (file)
@@ -364,7 +364,7 @@ static int parseelfimage(const char *image,
         if ( p != NULL && strncmp(p, "yes", 3) == 0 )
         {
             dsi->pae_kernel = PAEKERN_yes;
-            if ( !strncmp(p+4, "[extended-cr3]", 14) )
+            if ( !strncmp(p+3, "[extended-cr3]", 14) )
                 dsi->pae_kernel = PAEKERN_extended_cr3;
         }
     }
index 00730c1bb86f8d60dfdc79b85688df536f904fb4..83381b4b1a5fbe5948c4783ade8464ac17fccb0c 100644 (file)
@@ -304,7 +304,7 @@ int parseelfimage(struct domain_setup_info *dsi)
         if ( p != NULL && strncmp(p, "yes", 3) == 0 )
         {
             dsi->pae_kernel = PAEKERN_yes;
-            if ( !strncmp(p+4, "[extended-cr3]", 14) )
+            if ( !strncmp(p+3, "[extended-cr3]", 14) )
                 dsi->pae_kernel = PAEKERN_extended_cr3;
         }
     }